package com.fjd.mapper;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface AfterSalesImageMapper {

    void insert(String afterSalesId, List<String> imageList);

    @Select("select image_url from aftersales_image where aftersales_id=#{id}")
    List<String> getByAfterSaleId(String id);

    @Delete("delete from aftersales_image where aftersales_id=#{id}")
    void deleteAfterSaleImage(String id);
}
